set -eu
rm -rf redis-cluster-0.0.1.tgz
helm lint redis-cluster/
helm package redis-cluster/  --save=false
helm delete --purge redis-cluster
kubectl delete pvc data-redis-app-{0..5}
rm -rf /usr/local/kubernetes/redis/pv{0..5}/*

helm install redis-cluster-*.tgz --debug --dry-run --name redis-cluster

# helm repo index --url=http://192.168.110.112:8879 .    
# helm repo update

